replace mergeclink=1 if BPSTPAGB=="LONDON" & STBPCCTYGB=="MIDDLESEX" & STPARIDGB=="LONDON: MAYFAIR" & STRGCNTYGB=="MIDDLESEX LONDON"
replace mergeclink=1 if BPSTPAGB=="TODDINGTON" & STBPCCTYGB=="MIDDLESEX" & STPARIDGB=="ISLINGTON" & STRGCNTYGB=="MIDDLESEX LONDON"
replace mergeclink=1 if BPSTPAGB=="ELLINGTON" & STBPCCTYGB=="MIDDLESEX" & STPARIDGB=="ISLINGTON" & STRGCNTYGB=="MIDDLESEX LONDON"
replace mergeclink=1 if BPSTPAGB=="LIDLINGTON" & STBPCCTYGB=="MIDDLESEX" & STPARIDGB=="ISLINGTON" & STRGCNTYGB=="MIDDLESEX LONDON"
replace mergeclink=1 if BPSTPAGB=="EDLINGTON" & STBPCCTYGB=="MIDDLESEX" & STPARIDGB=="ISLINGTON" & STRGCNTYGB=="MIDDLESEX LONDON"
replace mergeclink=1 if BPSTPAGB=="TALLINGTON" & STBPCCTYGB=="MIDDLESEX" & STPARIDGB=="ISLINGTON" & STRGCNTYGB=="MIDDLESEX LONDON"
replace mergeclink=1 if BPSTPAGB=="LITLINGTON" & STBPCCTYGB=="MIDDLESEX" & STPARIDGB=="ISLINGTON" & STRGCNTYGB=="MIDDLESEX LONDON"
replace mergeclink=1 if BPSTPAGB=="KINGTON" & STBPCCTYGB=="MIDDLESEX" & STPARIDGB=="ISLINGTON" & STRGCNTYGB=="MIDDLESEX LONDON"
replace mergeclink=1 if BPSTPAGB=="WHITCHURCH" & STBPCCTYGB=="MIDDLESEX" & STPARIDGB=="WHITECHAPEL" & STRGCNTYGB=="MIDDLESEX LONDON"
replace mergeclink=1 if BPSTPAGB=="LONDON" & STBPCCTYGB=="MIDDLESEX" & STPARIDGB=="LONDON: ALDGATE" & STRGCNTYGB=="MIDDLESEX LONDON"
replace mergeclink=1 if BPSTPAGB=="BENNINGTON" & STBPCCTYGB=="SURREY" & STPARIDGB=="KENNINGTON" & STRGCNTYGB=="SURREY LONDON"
replace mergeclink=1 if BPSTPAGB=="HONINGTON" & STBPCCTYGB=="SURREY" & STPARIDGB=="KENNINGTON" & STRGCNTYGB=="SURREY LONDON"
replace mergeclink=1 if BPSTPAGB=="KENSINGTON" & STBPCCTYGB=="SURREY" & STPARIDGB=="KENNINGTON" & STRGCNTYGB=="SURREY LONDON"
replace mergeclink=1 if BPSTPAGB=="HANNINGTON" & STBPCCTYGB=="SURREY" & STPARIDGB=="KENNINGTON" & STRGCNTYGB=="SURREY LONDON"
replace mergeclink=1 if BPSTPAGB=="BRIMPTON" & STBPCCTYGB=="SURREY" & STPARIDGB=="BRIXTON" & STRGCNTYGB=="SURREY LONDON"
replace mergeclink=1 if BPSTPAGB=="ROTHERHAM" & STBPCCTYGB=="SURREY" & STPARIDGB=="ROTHERHITHE" & STRGCNTYGB=="SURREY LONDON"
replace mergeclink=1 if BPSTPAGB=="GILLINGHAM" & STBPCCTYGB=="DORSET" & STPARIDGB=="GILLING" & STRGCNTYGB=="DORSET"
replace mergeclink=1 if BPSTPAGB=="HANDLEY" & STBPCCTYGB=="STAFFORDSHIRE" & STPARIDGB=="HANDFORTH" & STRGCNTYGB=="STAFFORDSHIRE"
replace mergeclink=1 if BPSTPAGB=="STOCKERSTON" & STBPCCTYGB=="LEICESTERSHIRE" & STPARIDGB=="STOCKTON" & STRGCNTYGB=="WORCESTERSHIRE"
replace mergeclink=1 if BPSTPAGB=="GLOUCESTER" & STBPCCTYGB=="GLOUCESTERSHIRE" & STPARIDGB=="GLOUCESTER ST OWEN" & STRGCNTYGB=="GLOUCESTERSHIRE"
replace mergeclink=1 if BPSTPAGB=="GORSLEY" & STBPCCTYGB=="GLOUCESTERSHIRE" & STPARIDGB=="HORSLEY" & STRGCNTYGB=="GLOUCESTERSHIRE"
replace mergeclink=1 if BPSTPAGB=="ELTON" & STBPCCTYGB=="HEREFORDSHIRE" & STPARIDGB=="SHELTON" & STRGCNTYGB=="STAFFORDSHIRE"
replace mergeclink=1 if BPSTPAGB=="NOTTINGHAM" & STBPCCTYGB=="NOTTINGHAMSHIRE" & STPARIDGB=="NOTTINGHAM:BYRON ST MARY" & STRGCNTYGB=="NOTTINGHAMSHIRE"
replace mergeclink=1 if BPSTPAGB=="EAST GRINSTED" & STBPCCTYGB=="SUSSEX" & STPARIDGB=="EASTDEAN" & STRGCNTYGB=="SUSSEX"
replace mergeclink=1 if BPSTPAGB=="BRIMFIELD" & STBPCCTYGB=="HEREFORDSHIRE" & STPARIDGB=="BROADFIELD" & STRGCNTYGB=="HERTFORDSHIRE"
replace mergeclink=1 if BPSTPAGB=="CHESHUNT" & STBPCCTYGB=="BUCKINGHAMSHIRE" & STPARIDGB=="CHESHAM-BOIS" & STRGCNTYGB=="BUCKINGHAMSHIRE"
replace mergeclink=1 if BPSTPAGB=="WYCOMBE MARCH" & STBPCCTYGB=="BUCKINGHAMSHIRE" & STPARIDGB=="WYCOMBE OLD BOROUGH" & STRGCNTYGB=="BUCKINGHAMSHIRE"
replace mergeclink=1 if BPSTPAGB=="GREAT KINGSHILL" & STBPCCTYGB=="BUCKINGHAMSHIRE" & STPARIDGB=="GREAT WOOLSTONE" & STRGCNTYGB=="BUCKINGHAMSHIRE"
replace mergeclink=1 if BPSTPAGB=="GREAT BERKHAMPSTEAD" & STBPCCTYGB=="BUCKINGHAMSHIRE" & STPARIDGB=="GREAT WOOLSTONE" & STRGCNTYGB=="BUCKINGHAMSHIRE"
replace mergeclink=1 if BPSTPAGB=="GREAT GADDESDEN" & STBPCCTYGB=="BUCKINGHAMSHIRE" & STPARIDGB=="GREAT WOOLSTONE" & STRGCNTYGB=="BUCKINGHAMSHIRE"
replace mergeclink=1 if BPSTPAGB=="PRESTWOOD" & STBPCCTYGB=="BUCKINGHAMSHIRE" & STPARIDGB=="PRESTON-BISSET" & STRGCNTYGB=="BUCKINGHAMSHIRE"
replace mergeclink=1 if BPSTPAGB=="STOCKTON ON THE FOREST" & STBPCCTYGB=="YORKSHIRE" & STPARIDGB=="SUTTON ON THE FOREST" & STRGCNTYGB=="YORKSHIRE (EAST, NORTH, AND WEST)"
replace mergeclink=1 if BPSTPAGB=="LITTLE GELMHAM" & STBPCCTYGB=="SUFFOLK" & STPARIDGB=="LITTLE HENNY (ESSEX)" & STRGCNTYGB=="SUFFOLK"
replace mergeclink=1 if BPSTPAGB=="CASTLE GRESLEY" & STBPCCTYGB=="DERBYSHIRE" & STPARIDGB=="CASTLE DONINGTON (LEICESTER)" & STRGCNTYGB=="DERBYSHIRE"
replace mergeclink=1 if BPSTPAGB=="STANTON AND NEWHALL" & STBPCCTYGB=="DERBYSHIRE" & STPARIDGB=="STANTON BY BRIDGE" & STRGCNTYGB=="DERBYSHIRE"
replace mergeclink=1 if BPSTPAGB=="EGGINTON" & STBPCCTYGB=="DERBYSHIRE" & STPARIDGB=="MUGGINTON" & STRGCNTYGB=="DERBYSHIRE"
replace mergeclink=1 if BPSTPAGB=="NEWTON SOLNEY" & STBPCCTYGB=="DERBYSHIRE" & STPARIDGB=="NEWTON GRANGE" & STRGCNTYGB=="DERBYSHIRE"
replace mergeclink=1 if BPSTPAGB=="SOUTH NORMANTON" & STBPCCTYGB=="DERBYSHIRE" & STPARIDGB=="TEMPLE NORMANTON" & STRGCNTYGB=="DERBYSHIRE"
replace mergeclink=1 if BPSTPAGB=="HATTON" & STBPCCTYGB=="DERBYSHIRE" & STPARIDGB=="GRATTON" & STRGCNTYGB=="DERBYSHIRE"
replace mergeclink=1 if BPSTPAGB=="CATTON" & STBPCCTYGB=="DERBYSHIRE" & STPARIDGB=="GRATTON" & STRGCNTYGB=="DERBYSHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANDRILLO-YN-RH\UffffffffS" & STBPCCTYGB=="DENBIGHSHIRE" & STPARIDGB=="LLANRHYDD" & STRGCNTYGB=="DENBIGHSHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANSANTFFRAID-GLYN-CEIRIOG" & STBPCCTYGB=="DENBIGHSHIRE" & STPARIDGB=="LLANFAIR-DYFFRYN-CLWYD" & STRGCNTYGB=="DENBIGHSHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANFIHANGEL-GLYN-MYFYR" & STBPCCTYGB=="DENBIGHSHIRE" & STPARIDGB=="LLANFAIR-DYFFRYN-CLWYD" & STRGCNTYGB=="DENBIGHSHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANGEDWYN" & STBPCCTYGB=="DENBIGHSHIRE" & STPARIDGB=="LLANGANHAFAL" & STRGCNTYGB=="DENBIGHSHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANGWM" & STBPCCTYGB=="DENBIGHSHIRE" & STPARIDGB=="LLANGANHAFAL" & STRGCNTYGB=="DENBIGHSHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANGOLLEN-TRIAIAN" & STBPCCTYGB=="DENBIGHSHIRE" & STPARIDGB=="LLANGANHAFAL" & STRGCNTYGB=="DENBIGHSHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANSILIN" & STBPCCTYGB=="DENBIGHSHIRE" & STPARIDGB=="LLANSANNAN" & STRGCNTYGB=="DENBIGHSHIRE"
*replace mergeclink=1 if BPSTPAGB=="ST ANDREW HOLBORN ABOVE THE BARS AND ST GEORGE THE" & STBPCCTYGB=="MIDDLESEX" & STPARIDGB=="ST ANDREW HOLBORN BELOW THE BARS" & STRGCNTYGB=="MIDDLESEX"
replace mergeclink=1 if BPSTPAGB=="BARNES" & STBPCCTYGB=="MIDDLESEX" & STPARIDGB=="BARNARDS INN" & STRGCNTYGB=="MIDDLESEX"
replace mergeclink=1 if BPSTPAGB=="STANSTEAD ST MARGARET" & STBPCCTYGB=="MIDDLESEX" & STPARIDGB=="ST MARGARET MOSES" & STRGCNTYGB=="MIDDLESEX"
replace mergeclink=1 if BPSTPAGB=="LEICESTER ST MARGARET" & STBPCCTYGB=="MIDDLESEX" & STPARIDGB=="ST MARGARET MOSES" & STRGCNTYGB=="MIDDLESEX"
replace mergeclink=1 if BPSTPAGB=="ST ALBANS ST PETER" & STBPCCTYGB=="MIDDLESEX" & STPARIDGB=="ST ALBAN WOOD STREET" & STRGCNTYGB=="MIDDLESEX"
*replace mergeclink=1 if BPSTPAGB=="ST ALBANS" & STBPCCTYGB=="MIDDLESEX" & STPARIDGB=="ST ALBAN WOOD STREET" & STRGCNTYGB=="MIDDLESEX"
replace mergeclink=1 if BPSTPAGB=="ST ALBANS ST MICHAEL" & STBPCCTYGB=="MIDDLESEX" & STPARIDGB=="ST MICHAEL BASSISHAW" & STRGCNTYGB=="MIDDLESEX"
replace mergeclink=1 if BPSTPAGB=="TAUNTON ST MARY MAGDALEN" & STBPCCTYGB=="MIDDLESEX" & STPARIDGB=="ST MARY MAGDALEN MILK STREET" & STRGCNTYGB=="MIDDLESEX"
*replace mergeclink=1 if BPSTPAGB=="ELY HOLY TRINITY" & STBPCCTYGB=="MIDDLESEX" & STPARIDGB=="HOLY TRINITY THE LESS" & STRGCNTYGB=="MIDDLESEX"
replace mergeclink=1 if BPSTPAGB=="ST STEPHEN" & STBPCCTYGB=="MIDDLESEX" & STPARIDGB=="ST STEPHEN WALBROOK" & STRGCNTYGB=="MIDDLESEX"
replace mergeclink=1 if BPSTPAGB=="ST MARY BOURNE" & STBPCCTYGB=="MIDDLESEX" & STPARIDGB=="ST MARY BOTHAW" & STRGCNTYGB=="MIDDLESEX"
replace mergeclink=1 if BPSTPAGB=="ST GEORGE THE MARTYR SOUTHWARK" & STBPCCTYGB=="MIDDLESEX" & STPARIDGB=="ST MAGNUS THE MARTYR" & STRGCNTYGB=="MIDDLESEX"
*replace mergeclink=1 if BPSTPAGB=="ST GEORGE" & STBPCCTYGB=="MIDDLESEX" & STPARIDGB=="ST GEORGE BOTOLPH LANE" & STRGCNTYGB=="MIDDLESEX"
*replace mergeclink=1 if BPSTPAGB=="ELY HOLY TRINITY" & STBPCCTYGB=="MIDDLESEX" & STPARIDGB=="HOLY TRINITY MINORIES" & STRGCNTYGB=="MIDDLESEX"
replace mergeclink=1 if BPSTPAGB=="CITY OF LONDON" & STBPCCTYGB=="MIDDLESEX" & STPARIDGB=="TOWER OF LONDON" & STRGCNTYGB=="MIDDLESEX"
replace mergeclink=1 if BPSTPAGB=="CHERTSEY" & STBPCCTYGB=="MIDDLESEX" & STPARIDGB=="CHESHUNT (HERTS)" & STRGCNTYGB=="MIDDLESEX"
replace mergeclink=1 if BPSTPAGB=="CHESHAM" & STBPCCTYGB=="MIDDLESEX" & STPARIDGB=="CHESHUNT (HERTS)" & STRGCNTYGB=="MIDDLESEX"
replace mergeclink=1 if BPSTPAGB=="NORWICH" & STBPCCTYGB=="NORFOLK" & STPARIDGB=="NORWICH ST HELEN" & STRGCNTYGB=="NORFOLK"
replace mergeclink=1 if BPSTPAGB=="SHOTISHAM" & STBPCCTYGB=="NORFOLK" & STPARIDGB=="SHOTTESHAM ST MARY AND ST MARTIN" & STRGCNTYGB=="NORFOLK"
replace mergeclink=1 if BPSTPAGB=="SOUTH TUDDENHAM" & STBPCCTYGB=="NORFOLK" & STPARIDGB=="SOUTH WALSHAM ST LAWRENCE" & STRGCNTYGB=="NORFOLK"
replace mergeclink=1 if BPSTPAGB=="PULHAM ST MARY MAGDALENE" & STBPCCTYGB=="NORFOLK" & STPARIDGB=="PULHAM ST MARY THE VIRGIN" & STRGCNTYGB=="NORFOLK"
replace mergeclink=1 if BPSTPAGB=="WALLBOTLE" & STBPCCTYGB=="NORTHUMBERLAND" & STPARIDGB=="WALLRIDGE" & STRGCNTYGB=="NORTHUMBERLAND"
replace mergeclink=1 if BPSTPAGB=="LAMBLEY" & STBPCCTYGB=="NORTHUMBERLAND" & STPARIDGB=="LAMBETH" & STRGCNTYGB=="NORTHUMBERLAND"
replace mergeclink=1 if BPSTPAGB=="HARTBURN" & STBPCCTYGB=="NORTHUMBERLAND" & STPARIDGB=="HARTLEYBURN" & STRGCNTYGB=="NORTHUMBERLAND"
replace mergeclink=1 if BPSTPAGB=="WALLBOTLE" & STBPCCTYGB=="NORTHUMBERLAND" & STPARIDGB=="WALL TOWN" & STRGCNTYGB=="NORTHUMBERLAND"
replace mergeclink=1 if BPSTPAGB=="DUNSTON" & STBPCCTYGB=="NORTHUMBERLAND" & STPARIDGB=="DUNSTER" & STRGCNTYGB=="NORTHUMBERLAND"
replace mergeclink=1 if BPSTPAGB=="BRISTOL" & STBPCCTYGB=="GLOUCESTERSHIRE" & STPARIDGB=="BRISTOL ST EWIN" & STRGCNTYGB=="GLOUCESTERSHIRE"
replace mergeclink=1 if BPSTPAGB=="WESTRIP" & STBPCCTYGB=="GLOUCESTERSHIRE" & STPARIDGB=="WESTERLEIGH" & STRGCNTYGB=="GLOUCESTERSHIRE"
replace mergeclink=1 if BPSTPAGB=="COLD OVERTON" & STBPCCTYGB=="LEICESTERSHIRE" & STPARIDGB=="COLD ASHTON" & STRGCNTYGB=="GLOUCESTERSHIRE"
replace mergeclink=1 if BPSTPAGB=="BARTON" & STBPCCTYGB=="GLOUCESTERSHIRE" & STPARIDGB=="TORMARTON" & STRGCNTYGB=="GLOUCESTERSHIRE"
replace mergeclink=1 if BPSTPAGB=="MORTON" & STBPCCTYGB=="GLOUCESTERSHIRE" & STPARIDGB=="HORTON" & STRGCNTYGB=="GLOUCESTERSHIRE"
replace mergeclink=1 if BPSTPAGB=="FRAMPTON MANSELL" & STBPCCTYGB=="GLOUCESTERSHIRE" & STPARIDGB=="FRAMPTON-COTTERELL" & STRGCNTYGB=="GLOUCESTERSHIRE"
replace mergeclink=1 if BPSTPAGB=="MALMESBURY" & STBPCCTYGB=="GLOUCESTERSHIRE" & STPARIDGB=="ALMONDSBURY" & STRGCNTYGB=="GLOUCESTERSHIRE"
replace mergeclink=1 if BPSTPAGB=="WHITESHILL" & STBPCCTYGB=="GLOUCESTERSHIRE" & STPARIDGB=="HILL" & STRGCNTYGB=="GLOUCESTERSHIRE"
replace mergeclink=1 if BPSTPAGB=="HILLERSLAND" & STBPCCTYGB=="GLOUCESTERSHIRE" & STPARIDGB=="HILL" & STRGCNTYGB=="GLOUCESTERSHIRE"
replace mergeclink=1 if BPSTPAGB=="HILLSLEY" & STBPCCTYGB=="GLOUCESTERSHIRE" & STPARIDGB=="HILL" & STRGCNTYGB=="GLOUCESTERSHIRE"
replace mergeclink=1 if BPSTPAGB=="KINGTON" & STBPCCTYGB=="GLOUCESTERSHIRE" & STPARIDGB=="ALKINGTON" & STRGCNTYGB=="GLOUCESTERSHIRE"
replace mergeclink=1 if BPSTPAGB=="ABLINGTON" & STBPCCTYGB=="GLOUCESTERSHIRE" & STPARIDGB=="ALKINGTON" & STRGCNTYGB=="GLOUCESTERSHIRE"
replace mergeclink=1 if BPSTPAGB=="TOCKINGTON" & STBPCCTYGB=="GLOUCESTERSHIRE" & STPARIDGB=="ALKINGTON" & STRGCNTYGB=="GLOUCESTERSHIRE"
replace mergeclink=1 if BPSTPAGB=="CHARGROVE" & STBPCCTYGB=="GLOUCESTERSHIRE" & STPARIDGB=="CHARFIELD" & STRGCNTYGB=="GLOUCESTERSHIRE"
replace mergeclink=1 if BPSTPAGB=="KINGSWESTON" & STBPCCTYGB=="GLOUCESTERSHIRE" & STPARIDGB=="KINGSWOOD" & STRGCNTYGB=="GLOUCESTERSHIRE"
replace mergeclink=1 if BPSTPAGB=="NORTH OR SOUTH CERNEY" & STBPCCTYGB=="GLOUCESTERSHIRE" & STPARIDGB=="NORTH NIBLEY" & STRGCNTYGB=="GLOUCESTERSHIRE"
replace mergeclink=1 if BPSTPAGB=="NEWTOWN" & STBPCCTYGB=="GLOUCESTERSHIRE" & STPARIDGB=="NEWNHAM" & STRGCNTYGB=="GLOUCESTERSHIRE"
replace mergeclink=1 if BPSTPAGB=="EASTCOMBE" & STBPCCTYGB=="GLOUCESTERSHIRE" & STPARIDGB=="EAST DEAN" & STRGCNTYGB=="GLOUCESTERSHIRE"
replace mergeclink=1 if BPSTPAGB=="HUNTINGFORD" & STBPCCTYGB=="GLOUCESTERSHIRE" & STPARIDGB=="HUNTLEY" & STRGCNTYGB=="GLOUCESTERSHIRE"
replace mergeclink=1 if BPSTPAGB=="TAUNTON" & STBPCCTYGB=="GLOUCESTERSHIRE" & STPARIDGB=="TAYNTON" & STRGCNTYGB=="GLOUCESTERSHIRE"
replace mergeclink=1 if BPSTPAGB=="NORTHWAY" & STBPCCTYGB=="GLOUCESTERSHIRE" & STPARIDGB=="NORTON" & STRGCNTYGB=="GLOUCESTERSHIRE"
replace mergeclink=1 if BPSTPAGB=="MORTON" & STBPCCTYGB=="GLOUCESTERSHIRE" & STPARIDGB=="NORTON" & STRGCNTYGB=="GLOUCESTERSHIRE"
replace mergeclink=1 if BPSTPAGB=="GLOUCESTER" & STBPCCTYGB=="GLOUCESTERSHIRE" & STPARIDGB=="GLOUCESTER TUFFLEY" & STRGCNTYGB=="GLOUCESTERSHIRE"
replace mergeclink=1 if BPSTPAGB=="SOUTHWICK" & STBPCCTYGB=="GLOUCESTERSHIRE" & STPARIDGB=="SOUTH HAMLET" & STRGCNTYGB=="GLOUCESTERSHIRE"
replace mergeclink=1 if BPSTPAGB=="WORTLEY" & STBPCCTYGB=="GLOUCESTERSHIRE" & STPARIDGB=="LITTLEWORTH" & STRGCNTYGB=="GLOUCESTERSHIRE"
replace mergeclink=1 if BPSTPAGB=="BEVINGTON" & STBPCCTYGB=="GLOUCESTERSHIRE" & STPARIDGB=="BADGINGTON" & STRGCNTYGB=="GLOUCESTERSHIRE"
replace mergeclink=1 if BPSTPAGB=="KEMPSTON" & STBPCCTYGB=="GLOUCESTERSHIRE" & STPARIDGB=="KEMPSFORD" & STRGCNTYGB=="GLOUCESTERSHIRE"
replace mergeclink=1 if BPSTPAGB=="PAMINGTON" & STBPCCTYGB=="GLOUCESTERSHIRE" & STPARIDGB=="FARMINGTON" & STRGCNTYGB=="GLOUCESTERSHIRE"
replace mergeclink=1 if BPSTPAGB=="WALLSWORTH" & STBPCCTYGB=="GLOUCESTERSHIRE" & STPARIDGB=="ALDSWORTH" & STRGCNTYGB=="GLOUCESTERSHIRE"
replace mergeclink=1 if BPSTPAGB=="SHIREHAMPTON" & STBPCCTYGB=="GLOUCESTERSHIRE" & STPARIDGB=="SHIPTON" & STRGCNTYGB=="GLOUCESTERSHIRE"
replace mergeclink=1 if BPSTPAGB=="SHIPSTON ON STOUR" & STBPCCTYGB=="GLOUCESTERSHIRE" & STPARIDGB=="SHIPTON" & STRGCNTYGB=="GLOUCESTERSHIRE"
*replace mergeclink=1 if BPSTPAGB=="SHIPSTON ON STOUR" & STBPCCTYGB=="WORCESTERSHIRE" & STPARIDGB=="SHIPTON" & STRGCNTYGB=="GLOUCESTERSHIRE"
replace mergeclink=1 if BPSTPAGB=="PILLOWELL" & STBPCCTYGB=="GLOUCESTERSHIRE" & STPARIDGB=="STOWELL" & STRGCNTYGB=="GLOUCESTERSHIRE"
replace mergeclink=1 if BPSTPAGB=="BLASTON" & STBPCCTYGB=="LEICESTERSHIRE" & STPARIDGB=="ASTON-BLANK" & STRGCNTYGB=="GLOUCESTERSHIRE"
replace mergeclink=1 if BPSTPAGB=="FORD" & STBPCCTYGB=="GLOUCESTERSHIRE" & STPARIDGB=="EYFORD" & STRGCNTYGB=="GLOUCESTERSHIRE"
replace mergeclink=1 if BPSTPAGB=="UPPER OR LOWER FOREST GREEN" & STBPCCTYGB=="GLOUCESTERSHIRE" & STPARIDGB=="UPPER SLAUGHTER" & STRGCNTYGB=="GLOUCESTERSHIRE"
replace mergeclink=1 if BPSTPAGB=="UPPER OR LOWER SOUDLEY" & STBPCCTYGB=="GLOUCESTERSHIRE" & STPARIDGB=="UPPER SLAUGHTER" & STRGCNTYGB=="GLOUCESTERSHIRE"
replace mergeclink=1 if BPSTPAGB=="UPPER OR LOWER ETLOE" & STBPCCTYGB=="GLOUCESTERSHIRE" & STPARIDGB=="UPPER SLAUGHTER" & STRGCNTYGB=="GLOUCESTERSHIRE"
replace mergeclink=1 if BPSTPAGB=="UPPER OR LOWER SWELL" & STBPCCTYGB=="GLOUCESTERSHIRE" & STPARIDGB=="UPPER SLAUGHTER" & STRGCNTYGB=="GLOUCESTERSHIRE"
replace mergeclink=1 if BPSTPAGB=="DAYLESFORD" & STBPCCTYGB=="WORCESTERSHIRE" & STPARIDGB=="DAYLESFORD (WORCS)" & STRGCNTYGB=="GLOUCESTERSHIRE"
replace mergeclink=1 if BPSTPAGB=="EVENLODE" & STBPCCTYGB=="WORCESTERSHIRE" & STPARIDGB=="EVENLODE (WORCS)" & STRGCNTYGB=="GLOUCESTERSHIRE"
replace mergeclink=1 if BPSTPAGB=="TEDDINGTON" & STBPCCTYGB=="GLOUCESTERSHIRE" & STPARIDGB=="ODDINGTON" & STRGCNTYGB=="GLOUCESTERSHIRE"
replace mergeclink=1 if BPSTPAGB=="TADDINGTON" & STBPCCTYGB=="GLOUCESTERSHIRE" & STPARIDGB=="ODDINGTON" & STRGCNTYGB=="GLOUCESTERSHIRE"
replace mergeclink=1 if BPSTPAGB=="TEDDINGTON" & STBPCCTYGB=="WORCESTERSHIRE" & STPARIDGB=="ODDINGTON" & STRGCNTYGB=="GLOUCESTERSHIRE"
replace mergeclink=1 if BPSTPAGB=="BROAD CAMPDEN" & STBPCCTYGB=="GLOUCESTERSHIRE" & STPARIDGB=="BROADWELL" & STRGCNTYGB=="GLOUCESTERSHIRE"
replace mergeclink=1 if BPSTPAGB=="BROAD OAK" & STBPCCTYGB=="GLOUCESTERSHIRE" & STPARIDGB=="BROADWELL" & STRGCNTYGB=="GLOUCESTERSHIRE"
replace mergeclink=1 if BPSTPAGB=="SHENINGTON" & STBPCCTYGB=="GLOUCESTERSHIRE" & STPARIDGB=="DONNINGTON" & STRGCNTYGB=="GLOUCESTERSHIRE"
replace mergeclink=1 if BPSTPAGB=="CUTSDEAN" & STBPCCTYGB=="WORCESTERSHIRE" & STPARIDGB=="CUTSDEAN (WORCS)" & STRGCNTYGB=="GLOUCESTERSHIRE"
replace mergeclink=1 if BPSTPAGB=="STAUNTON" & STBPCCTYGB=="WORCESTERSHIRE" & STPARIDGB=="STANTON" & STRGCNTYGB=="GLOUCESTERSHIRE"
replace mergeclink=1 if BPSTPAGB=="PAMINGTON" & STBPCCTYGB=="GLOUCESTERSHIRE" & STPARIDGB=="WORMINGTON" & STRGCNTYGB=="GLOUCESTERSHIRE"
replace mergeclink=1 if BPSTPAGB=="STONE" & STBPCCTYGB=="GLOUCESTERSHIRE" & STPARIDGB=="ALSTONE" & STRGCNTYGB=="GLOUCESTERSHIRE"
replace mergeclink=1 if BPSTPAGB=="GOSSINGTON" & STBPCCTYGB=="GLOUCESTERSHIRE" & STPARIDGB=="GOTHERINGTON" & STRGCNTYGB=="GLOUCESTERSHIRE"
replace mergeclink=1 if BPSTPAGB=="WHITCHURCH" & STBPCCTYGB=="GLOUCESTERSHIRE" & STPARIDGB=="WHITCOMB MAGNA" & STRGCNTYGB=="GLOUCESTERSHIRE"
replace mergeclink=1 if BPSTPAGB=="SHURDINGTON" & STBPCCTYGB=="GLOUCESTERSHIRE" & STPARIDGB=="GREAT SHURDINGTON" & STRGCNTYGB=="GLOUCESTERSHIRE"
replace mergeclink=1 if BPSTPAGB=="LAVERTON" & STBPCCTYGB=="GLOUCESTERSHIRE" & STPARIDGB=="STAVERTON" & STRGCNTYGB=="GLOUCESTERSHIRE"
replace mergeclink=1 if BPSTPAGB=="BEVINGTON" & STBPCCTYGB=="GLOUCESTERSHIRE" & STPARIDGB=="BODDINGTON" & STRGCNTYGB=="GLOUCESTERSHIRE"
replace mergeclink=1 if BPSTPAGB=="BURLEIGH" & STBPCCTYGB=="GLOUCESTERSHIRE" & STPARIDGB=="LEIGH" & STRGCNTYGB=="GLOUCESTERSHIRE"
replace mergeclink=1 if BPSTPAGB=="FYFIELD" & STBPCCTYGB=="GLOUCESTERSHIRE" & STPARIDGB=="HASFIELD" & STRGCNTYGB=="GLOUCESTERSHIRE"
replace mergeclink=1 if BPSTPAGB=="ELDERSFIELD" & STBPCCTYGB=="GLOUCESTERSHIRE" & STPARIDGB=="HASFIELD" & STRGCNTYGB=="GLOUCESTERSHIRE"
replace mergeclink=1 if BPSTPAGB=="TREDINGTON" & STBPCCTYGB=="WORCESTERSHIRE" & STPARIDGB=="TREDINGTON" & STRGCNTYGB=="GLOUCESTERSHIRE"
replace mergeclink=1 if BPSTPAGB=="CHACELEY" & STBPCCTYGB=="WORCESTERSHIRE" & STPARIDGB=="CHACELEY (WORCS)" & STRGCNTYGB=="GLOUCESTERSHIRE"
replace mergeclink=1 if BPSTPAGB=="PENDOCK" & STBPCCTYGB=="WORCESTERSHIRE" & STPARIDGB=="PENDOCK (WORCS)" & STRGCNTYGB=="GLOUCESTERSHIRE"
replace mergeclink=1 if BPSTPAGB=="OVERBURY" & STBPCCTYGB=="WORCESTERSHIRE" & STPARIDGB=="OVERBURY (WORCS)" & STRGCNTYGB=="GLOUCESTERSHIRE"
replace mergeclink=1 if BPSTPAGB=="CONDERTON" & STBPCCTYGB=="WORCESTERSHIRE" & STPARIDGB=="CONDERTON (WORCS)" & STRGCNTYGB=="GLOUCESTERSHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANGOED" & STBPCCTYGB=="ANGLESEY" & STPARIDGB=="LLANALLGO" & STRGCNTYGB=="ANGLESEY"
replace mergeclink=1 if BPSTPAGB=="LLANDEGFAN" & STBPCCTYGB=="ANGLESEY" & STPARIDGB=="LLANGWYFAN" & STRGCNTYGB=="ANGLESEY"
replace mergeclink=1 if BPSTPAGB=="LLANGAFFO" & STBPCCTYGB=="ANGLESEY" & STPARIDGB=="LLANGWYFAN" & STRGCNTYGB=="ANGLESEY"
replace mergeclink=1 if BPSTPAGB=="LLANDEGFAN" & STBPCCTYGB=="ANGLESEY" & STPARIDGB=="LLANFAELOG" & STRGCNTYGB=="ANGLESEY"
replace mergeclink=1 if BPSTPAGB=="LLANIDAN" & STBPCCTYGB=="ANGLESEY" & STPARIDGB=="LLANBABO" & STRGCNTYGB=="ANGLESEY"
replace mergeclink=1 if BPSTPAGB=="LLANFFINAN" & STBPCCTYGB=="ANGLESEY" & STPARIDGB=="LLANFFLEWYN" & STRGCNTYGB=="ANGLESEY"
replace mergeclink=1 if BPSTPAGB=="LLANFAIR-PWLL-GWYNGYLL" & STBPCCTYGB=="ANGLESEY" & STPARIDGB=="LLANFAIR-YNGHORNWY" & STRGCNTYGB=="ANGLESEY"
replace mergeclink=1 if BPSTPAGB=="LLANGEINWEN" & STBPCCTYGB=="ANGLESEY" & STPARIDGB=="LLANWENLLWYFO" & STRGCNTYGB=="ANGLESEY"
replace mergeclink=1 if BPSTPAGB=="LLANDYSILIO" & STBPCCTYGB=="ANGLESEY" & STPARIDGB=="LLANLLIBIO" & STRGCNTYGB=="ANGLESEY"
replace mergeclink=1 if BPSTPAGB=="ASTON" & STBPCCTYGB=="HEREFORDSHIRE" & STPARIDGB=="TURNASTONE" & STRGCNTYGB=="HEREFORDSHIRE"
replace mergeclink=1 if BPSTPAGB=="ACTON" & STBPCCTYGB=="STAFFORDSHIRE" & STPARIDGB=="BACTON" & STRGCNTYGB=="HEREFORDSHIRE"
replace mergeclink=1 if BPSTPAGB=="ACTON" & STBPCCTYGB=="STAFFORDSHIRE" & STPARIDGB=="WACTON" & STRGCNTYGB=="HEREFORDSHIRE"
replace mergeclink=1 if BPSTPAGB=="LITTLE HEREFORD" & STBPCCTYGB=="HEREFORDSHIRE" & STPARIDGB=="LITTLE COWARNE" & STRGCNTYGB=="HEREFORDSHIRE"
*replace mergeclink=1 if BPSTPAGB=="ELY HOLY TRINITY" & STBPCCTYGB=="SURREY" & STPARIDGB=="GUILDFORD HOLY TRINITY" & STRGCNTYGB=="SURREY"
replace mergeclink=1 if BPSTPAGB=="LOUGHBOROUGH" & STBPCCTYGB=="SURREY" & STPARIDGB=="REIGATE BOROUGH" & STRGCNTYGB=="SURREY"
replace mergeclink=1 if BPSTPAGB=="WITCHAM" & STBPCCTYGB=="SURREY" & STPARIDGB=="HAM WITH HATCH" & STRGCNTYGB=="SURREY"
replace mergeclink=1 if BPSTPAGB=="THATCHAM" & STBPCCTYGB=="SURREY" & STPARIDGB=="HAM WITH HATCH" & STRGCNTYGB=="SURREY"
replace mergeclink=1 if BPSTPAGB=="KIRK LINTON AND MEALRIGG" & STBPCCTYGB=="CUMBERLAND" & STPARIDGB=="KIRK ANDREWS UPON EDEN" & STRGCNTYGB=="CUMBERLAND"
replace mergeclink=1 if BPSTPAGB=="STAINTON" & STBPCCTYGB=="CUMBERLAND" & STPARIDGB=="STAINBURN" & STRGCNTYGB=="CUMBERLAND"
replace mergeclink=1 if BPSTPAGB=="PEMBROKE" & STBPCCTYGB=="CARDIGANSHIRE" & STPARIDGB=="PENLLYN (PEMBROKE)" & STRGCNTYGB=="CARDIGANSHIRE"
*replace mergeclink=1 if BPSTPAGB=="PENLLWYN" & STBPCCTYGB=="CARDIGANSHIRE" & STPARIDGB=="PENLLYN (PEMBROKE)" & STRGCNTYGB=="CARDIGANSHIRE"
replace mergeclink=1 if BPSTPAGB=="PEMBROKE" & STBPCCTYGB=="CARDIGANSHIRE" & STPARIDGB=="PENRITH (PEMBROKE)" & STRGCNTYGB=="CARDIGANSHIRE"
replace mergeclink=1 if BPSTPAGB=="BRONANT" & STBPCCTYGB=="CARDIGANSHIRE" & STPARIDGB=="BRONGWYN" & STRGCNTYGB=="CARDIGANSHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANBADARN FAWR" & STBPCCTYGB=="CARDIGANSHIRE" & STPARIDGB=="LLANBADARN-ODWYN" & STRGCNTYGB=="CARDIGANSHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANON" & STBPCCTYGB=="CARDIGANSHIRE" & STPARIDGB=="LLANIO" & STRGCNTYGB=="CARDIGANSHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANGORWEN" & STBPCCTYGB=="CARDIGANSHIRE" & STPARIDGB=="LLANIO" & STRGCNTYGB=="CARDIGANSHIRE"
replace mergeclink=1 if BPSTPAGB=="GOGINAN" & STBPCCTYGB=="CARDIGANSHIRE" & STPARIDGB=="GOGOYAN" & STRGCNTYGB=="CARDIGANSHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANYBYTHER" & STBPCCTYGB=="CARMARTHENSHIRE" & STPARIDGB=="LLANFIHANGEL-ABERBYTHYCH" & STRGCNTYGB=="CARMARTHENSHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANGELER" & STBPCCTYGB=="CARMARTHENSHIRE" & STPARIDGB=="LLANGENDEIRNE" & STRGCNTYGB=="CARMARTHENSHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANGLYDWEN" & STBPCCTYGB=="CARMARTHENSHIRE" & STPARIDGB=="LLANGENDEIRNE" & STRGCNTYGB=="CARMARTHENSHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANBOIDY" & STBPCCTYGB=="CARMARTHENSHIRE" & STPARIDGB=="LLANWINIO" & STRGCNTYGB=="CARMARTHENSHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANLLWNY" & STBPCCTYGB=="CARMARTHENSHIRE" & STPARIDGB=="LLANWINIO" & STRGCNTYGB=="CARMARTHENSHIRE"
replace mergeclink=1 if BPSTPAGB=="LONG BENNINGTON" & STBPCCTYGB=="LINCOLNSHIRE" & STPARIDGB=="BENNINGTON BY BOSTON" & STRGCNTYGB=="LINCOLNSHIRE"
replace mergeclink=1 if BPSTPAGB=="NORTH SCARLE" & STBPCCTYGB=="LINCOLNSHIRE" & STPARIDGB=="NORTH RAUCEBY" & STRGCNTYGB=="LINCOLNSHIRE"
replace mergeclink=1 if BPSTPAGB=="LINCOLN" & STBPCCTYGB=="LINCOLNSHIRE" & STPARIDGB=="LINCOLN SOUTH COMMON" & STRGCNTYGB=="LINCOLNSHIRE"
replace mergeclink=1 if BPSTPAGB=="EASTOFT" & STBPCCTYGB=="LINCOLNSHIRE" & STPARIDGB=="EAST FIRSBY" & STRGCNTYGB=="LINCOLNSHIRE"
replace mergeclink=1 if BPSTPAGB=="WESTBOROUGH" & STBPCCTYGB=="LINCOLNSHIRE" & STPARIDGB=="WEST THORPE" & STRGCNTYGB=="LINCOLNSHIRE"
replace mergeclink=1 if BPSTPAGB=="CAYTHORPE" & STBPCCTYGB=="LINCOLNSHIRE" & STPARIDGB=="AUTHORPE" & STRGCNTYGB=="LINCOLNSHIRE"
replace mergeclink=1 if BPSTPAGB=="ALTHORPE" & STBPCCTYGB=="LINCOLNSHIRE" & STPARIDGB=="AUTHORPE" & STRGCNTYGB=="LINCOLNSHIRE"
replace mergeclink=1 if BPSTPAGB=="UPPINGHAM" & STBPCCTYGB=="LINCOLNSHIRE" & STPARIDGB=="ALVINGHAM" & STRGCNTYGB=="LINCOLNSHIRE"
replace mergeclink=1 if BPSTPAGB=="CARLTON-LE-MOORLAND" & STBPCCTYGB=="LINCOLNSHIRE" & STPARIDGB=="HOLTON-LE-MOOR" & STRGCNTYGB=="LINCOLNSHIRE"
replace mergeclink=1 if BPSTPAGB=="GARTHORPE" & STBPCCTYGB=="LINCOLNSHIRE" & STPARIDGB=="NORTHORPE" & STRGCNTYGB=="LINCOLNSHIRE"
*replace mergeclink=1 if BPSTPAGB=="WARWICK" & STBPCCTYGB=="WARWICK" & STPARIDGB=="WARWICK ST MARY" & STRGCNTYGB=="WARWICK"
replace mergeclink=1 if BPSTPAGB=="CHIPPING CAMPDEN (GLOUCS)" & STBPCCTYGB=="OXFORD" & STPARIDGB=="CHIPPINGHURST" & STRGCNTYGB=="OXFORD"
*replace mergeclink=1 if BPSTPAGB=="OXFORD" & STBPCCTYGB=="OXFORD" & STPARIDGB=="OXFORD ST JOHN" & STRGCNTYGB=="OXFORD"
replace mergeclink=1 if BPSTPAGB=="SANDFORD ST MARTIN OR ON THAMES" & STBPCCTYGB=="OXFORD" & STPARIDGB=="OXFORD ST MARTIN" & STRGCNTYGB=="OXFORD"
*replace mergeclink=1 if BPSTPAGB=="OXFORD" & STBPCCTYGB=="OXFORD" & STPARIDGB=="OXFORD ST EBBE" & STRGCNTYGB=="OXFORD"
replace mergeclink=1 if BPSTPAGB=="UPPER OR LOWER HEYFORD" & STBPCCTYGB=="OXFORD" & STPARIDGB=="UPPER BODDINGTON (NORTHAMPTON)" & STRGCNTYGB=="OXFORD"
replace mergeclink=1 if BPSTPAGB=="LOWER OR UPPER HEYFORD" & STBPCCTYGB=="OXFORD" & STPARIDGB=="LOWER BODDINGTON (NORTHAMPTON)" & STRGCNTYGB=="OXFORD"
replace mergeclink=1 if BPSTPAGB=="BETTWS-Y-COED" & STBPCCTYGB=="CAERNARVONSHIRE" & STPARIDGB=="BETTWS-GARMON" & STRGCNTYGB=="CAERNARVONSHIRE"
replace mergeclink=1 if BPSTPAGB=="PENMAENMAWR" & STBPCCTYGB=="CAERNARVONSHIRE" & STPARIDGB=="PENMON (ANGLESEY)" & STRGCNTYGB=="CAERNARVONSHIRE"
replace mergeclink=1 if BPSTPAGB=="ST MELLONS" & STBPCCTYGB=="MONMOUTHSHIRE" & STPARIDGB=="ST MAUGHANS" & STRGCNTYGB=="MONMOUTHSHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANGUA" & STBPCCTYGB=="MONMOUTHSHIRE" & STPARIDGB=="LLANGOVEN" & STRGCNTYGB=="MONMOUTHSHIRE"
*replace mergeclink=1 if BPSTPAGB=="ABBINGDON" & STBPCCTYGB=="BERKSHIRE" & STPARIDGB=="ABINGDON ST NICHOLAS" & STRGCNTYGB=="BERKSHIRE"
*replace mergeclink=1 if BPSTPAGB=="ABINGDON" & STBPCCTYGB=="BERKSHIRE" & STPARIDGB=="ABINGDON ST NICHOLAS" & STRGCNTYGB=="BERKSHIRE"
replace mergeclink=1 if BPSTPAGB=="NEWINGTON" & STBPCCTYGB=="YORKSHIRE" & STPARIDGB=="NEWINGTON (OXON)" & STRGCNTYGB=="BERKSHIRE"
replace mergeclink=1 if BPSTPAGB=="WEST TANFIELD" & STBPCCTYGB=="YORKSHIRE" & STPARIDGB=="WEST SWALLOWFIELD" & STRGCNTYGB=="BERKSHIRE"
*replace mergeclink=1 if BPSTPAGB=="BEDFORD" & STBPCCTYGB=="BEDFORDSHIRE" & STPARIDGB=="BEDFORD EASTERN WARD ST PAUL" & STRGCNTYGB=="BEDFORDSHIRE"
*replace mergeclink=1 if BPSTPAGB=="BEDFORD" & STBPCCTYGB=="BEDFORDSHIRE" & STPARIDGB=="BEDFORD EASTERN WARD ST MARY" & STRGCNTYGB=="BEDFORDSHIRE"
*replace mergeclink=1 if BPSTPAGB=="BEDFORD" & STBPCCTYGB=="BEDFORDSHIRE" & STPARIDGB=="BEDFORD EASTERN WARD ST JOHN" & STRGCNTYGB=="BEDFORDSHIRE"
*replace mergeclink=1 if BPSTPAGB=="BEDFORD" & STBPCCTYGB=="BEDFORDSHIRE" & STPARIDGB=="BEDFORD WESTERN WARD ST JOHN" & STRGCNTYGB=="BEDFORDSHIRE"
*replace mergeclink=1 if BPSTPAGB=="BEDFORD" & STBPCCTYGB=="BEDFORDSHIRE" & STPARIDGB=="BEDFORD WESTERN WARD ST MARY" & STRGCNTYGB=="BEDFORDSHIRE"
*replace mergeclink=1 if BPSTPAGB=="BEDFORD" & STBPCCTYGB=="BEDFORDSHIRE" & STPARIDGB=="BEDFORD WESTERN WARD ST PAUL" & STRGCNTYGB=="BEDFORDSHIRE"
replace mergeclink=1 if BPSTPAGB=="KENSWORTH" & STBPCCTYGB=="HERTFORDSHIRE" & STPARIDGB=="KENSWORTH (HERTS)" & STRGCNTYGB=="BEDFORDSHIRE"
replace mergeclink=1 if BPSTPAGB=="GREAT BERKHAMPSTEAD" & STBPCCTYGB=="HAMPSHIRE" & STPARIDGB=="GREAT SALTERNS" & STRGCNTYGB=="HAMPSHIRE"
*replace mergeclink=1 if BPSTPAGB=="SOUTHAMPTON" & STBPCCTYGB=="HAMPSHIRE" & STPARIDGB=="SOUTHAMPTON ST JOHN" & STRGCNTYGB=="HAMPSHIRE"
*replace mergeclink=1 if BPSTPAGB=="WINCHESTER" & STBPCCTYGB=="HAMPSHIRE" & STPARIDGB=="WINCHESTER ST JOHN" & STRGCNTYGB=="HAMPSHIRE"
*replace mergeclink=1 if BPSTPAGB=="ALDERSHOT MILITARY IN SOUTH CAMP" & STBPCCTYGB=="HAMPSHIRE" & STPARIDGB=="MILITARY IN NORTH CAMP ALDERSHOT" & STRGCNTYGB=="HAMPSHIRE"
*replace mergeclink=1 if BPSTPAGB=="SHAFTSBURY" & STBPCCTYGB=="DORSET" & STPARIDGB=="SHAFTESBURY ST PETER" & STRGCNTYGB=="DORSET"
*replace mergeclink=1 if BPSTPAGB=="CAMBRIDGE" & STBPCCTYGB=="CAMBRIDGESHIRE" & STPARIDGB=="CAMBRIDGE ST PETER" & STRGCNTYGB=="CAMBRIDGESHIRE"
*replace mergeclink=1 if BPSTPAGB=="LLANDOUGH NEAR PENARTH" & STBPCCTYGB=="GLAMORGANSHIRE" & STPARIDGB=="LLANDOUGH NEAR COWBRIDGE" & STRGCNTYGB=="GLAMORGANSHIRE"
*replace mergeclink=1 if BPSTPAGB=="LLANDEWY-FACH" & STBPCCTYGB=="RADNORSHIRE" & STPARIDGB=="LLANDEWY-YSTRADENNY" & STRGCNTYGB=="RADNORSHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANDRINDOD" & STBPCCTYGB=="RADNORSHIRE" & STPARIDGB=="LLANDEWY-YSTRADENNY" & STRGCNTYGB=="RADNORSHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANSTEPHAN" & STBPCCTYGB=="RADNORSHIRE" & STPARIDGB=="LLANANNO" & STRGCNTYGB=="RADNORSHIRE"
replace mergeclink=1 if BPSTPAGB=="WESTRILL AND STARMORE" & STBPCCTYGB=="LEICESTERSHIRE" & STPARIDGB=="WESTON BY WELLAND (NORTHAMPTON)" & STRGCNTYGB=="LEICESTERSHIRE"
replace mergeclink=1 if BPSTPAGB=="RATCLIFFE CULEY" & STBPCCTYGB=="LEICESTERSHIRE" & STPARIDGB=="RATCLIFFE ON THE WREAK" & STRGCNTYGB=="LEICESTERSHIRE"
replace mergeclink=1 if BPSTPAGB=="DINNINGTON" & STBPCCTYGB=="YORKSHIRE" & STPARIDGB=="DUNNINGTON" & STRGCNTYGB=="YORKSHIRE (EAST, NORTH, AND WEST)"
replace mergeclink=1 if BPSTPAGB=="RILLINGTON" & STBPCCTYGB=="YORKSHIRE" & STPARIDGB=="MILLINGTON" & STRGCNTYGB=="YORKSHIRE (EAST, NORTH, AND WEST)"
replace mergeclink=1 if BPSTPAGB=="TOLLERTON" & STBPCCTYGB=="YORKSHIRE" & STPARIDGB=="ELLERTON" & STRGCNTYGB=="YORKSHIRE (EAST, NORTH, AND WEST)"
replace mergeclink=1 if BPSTPAGB=="CLAXTON" & STBPCCTYGB=="YORKSHIRE" & STPARIDGB=="LAXTON" & STRGCNTYGB=="YORKSHIRE (EAST, NORTH, AND WEST)"
replace mergeclink=1 if BPSTPAGB=="ELTON" & STBPCCTYGB=="YORKSHIRE" & STPARIDGB=="WELTON" & STRGCNTYGB=="YORKSHIRE (EAST, NORTH, AND WEST)"
replace mergeclink=1 if BPSTPAGB=="ELTON" & STBPCCTYGB=="YORKSHIRE" & STPARIDGB=="MELTON" & STRGCNTYGB=="YORKSHIRE (EAST, NORTH, AND WEST)"
replace mergeclink=1 if BPSTPAGB=="MONINGTON" & STBPCCTYGB=="PEMBROKESHIRE" & STPARIDGB=="MOUNTON" & STRGCNTYGB=="PEMBROKESHIRE"
*replace mergeclink=1 if BPSTPAGB=="PEMBROKE" & STBPCCTYGB=="PEMBROKESHIRE" & STPARIDGB=="PEMBROKE ST NICHOLAS AKA MONCKTON" & STRGCNTYGB=="PEMBROKESHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANTOOD" & STBPCCTYGB=="PEMBROKESHIRE" & STPARIDGB=="LLANGWM" & STRGCNTYGB=="PEMBROKESHIRE"
*replace mergeclink=1 if BPSTPAGB=="HAVERFORDWEST" & STBPCCTYGB=="PEMBROKESHIRE" & STPARIDGB=="HAVERFORDWEST ST MARY" & STRGCNTYGB=="PEMBROKESHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANFYRNACH" & STBPCCTYGB=="PEMBROKESHIRE" & STPARIDGB=="LLANYCHAER" & STRGCNTYGB=="PEMBROKESHIRE"
replace mergeclink=1 if BPSTPAGB=="DEVIZES" & STBPCCTYGB=="WILTSHIRE" & STPARIDGB=="DEVIZES ST MARY THE VIRGIN" & STRGCNTYGB=="WILTSHIRE"
replace mergeclink=1 if BPSTPAGB=="KEMPSTON" & STBPCCTYGB=="KENT" & STPARIDGB=="KESTON" & STRGCNTYGB=="KENT"
replace mergeclink=1 if BPSTPAGB=="KEMPTON" & STBPCCTYGB=="KENT" & STPARIDGB=="KESTON" & STRGCNTYGB=="KENT"
replace mergeclink=1 if BPSTPAGB=="ASTON" & STBPCCTYGB=="KENT" & STPARIDGB=="KESTON" & STRGCNTYGB=="KENT"
replace mergeclink=1 if BPSTPAGB=="GILLINGHAM" & STBPCCTYGB=="KENT" & STPARIDGB=="GILLING" & STRGCNTYGB=="KENT"
replace mergeclink=1 if BPSTPAGB=="HILLINGDON" & STBPCCTYGB=="KENT" & STPARIDGB=="GILLING" & STRGCNTYGB=="KENT"
replace mergeclink=1 if BPSTPAGB=="WESTBURY" & STBPCCTYGB=="KENT" & STPARIDGB=="WESTWELL" & STRGCNTYGB=="KENT"
replace mergeclink=1 if BPSTPAGB=="WEST MEON" & STBPCCTYGB=="KENT" & STPARIDGB=="WESTWELL" & STRGCNTYGB=="KENT"
*replace mergeclink=1 if BPSTPAGB=="CANTERBURY" & STBPCCTYGB=="KENT" & STPARIDGB=="CANTERBURY OLD CASTLE" & STRGCNTYGB=="KENT"
*replace mergeclink=1 if BPSTPAGB=="CANTERBURY" & STBPCCTYGB=="KENT" & STPARIDGB=="CANTERBURY ALL SAINTS" & STRGCNTYGB=="KENT"
replace mergeclink=1 if BPSTPAGB=="ELLINGTON" & STBPCCTYGB=="KENT" & STPARIDGB=="DAVINGTON" & STRGCNTYGB=="KENT"
replace mergeclink=1 if BPSTPAGB=="STANSTEAD ST MARGARET" & STBPCCTYGB=="KENT" & STPARIDGB=="SANDWICH ST MARY" & STRGCNTYGB=="KENT"
*replace mergeclink=1 if BPSTPAGB=="SUTTON" & STBPCCTYGB=="KENT" & STPARIDGB=="SUTTON BY DOVER" & STRGCNTYGB=="KENT"
*replace mergeclink=1 if BPSTPAGB=="DOVER" & STBPCCTYGB=="KENT" & STPARIDGB=="DOVER EAST CLIFFE" & STRGCNTYGB=="KENT"
replace mergeclink=1 if BPSTPAGB=="ALDERSHOT MILITARY IN NORTH CAMP" & STBPCCTYGB=="KENT" & STPARIDGB=="MILITARY IN SHORNCLIFFE CAMP" & STRGCNTYGB=="KENT"
replace mergeclink=1 if BPSTPAGB=="DORSTONE" & STBPCCTYGB=="HEREFORDSHIRE" & STPARIDGB=="WORSTON" & STRGCNTYGB=="STAFFORDSHIRE"
replace mergeclink=1 if BPSTPAGB=="NORTON" & STBPCCTYGB=="STAFFORDSHIRE" & STPARIDGB=="COLD-NORTON" & STRGCNTYGB=="STAFFORDSHIRE"
replace mergeclink=1 if BPSTPAGB=="DRAYTON IN HALES AKA MARKET DRAYTON" & STBPCCTYGB=="STAFFORDSHIRE" & STPARIDGB=="DRAYCOTT IN THE CLAY" & STRGCNTYGB=="STAFFORDSHIRE"
*replace mergeclink=1 if BPSTPAGB=="WALSALL" & STBPCCTYGB=="STAFFORDSHIRE" & STPARIDGB=="WALSALL FOREIGN" & STRGCNTYGB=="STAFFORDSHIRE"
*replace mergeclink=1 if BPSTPAGB=="WICKHAM ST PAUL" & STBPCCTYGB=="ESSEX" & STPARIDGB=="WICKHAM BISHOPS" & STRGCNTYGB=="ESSEX"
*replace mergeclink=1 if BPSTPAGB=="BERECHURCH" & STBPCCTYGB=="ESSEX" & STPARIDGB=="COLCHESTER BERECHURCH" & STRGCNTYGB=="ESSEX"
*replace mergeclink=1 if BPSTPAGB=="COLCHESTER" & STBPCCTYGB=="ESSEX" & STPARIDGB=="COLCHESTER ST MARTIN" & STRGCNTYGB=="ESSEX"
replace mergeclink=1 if BPSTPAGB=="LITTLE GIDDING" & STBPCCTYGB=="HUNTINGDONSHIRE" & STPARIDGB=="LITTLE BARFORD (BEDS)" & STRGCNTYGB=="HUNTINGDONSHIRE"
replace mergeclink=1 if BPSTPAGB=="HOLBECK" & STBPCCTYGB=="NOTTINGHAMSHIRE" & STPARIDGB=="HOLBEACH" & STRGCNTYGB=="NOTTINGHAMSHIRE"
replace mergeclink=1 if BPSTPAGB=="LAMBLEY" & STBPCCTYGB=="NOTTINGHAMSHIRE" & STPARIDGB=="LAMBETH" & STRGCNTYGB=="NOTTINGHAMSHIRE"
*replace mergeclink=1 if BPSTPAGB=="NOTTINGHAM" & STBPCCTYGB=="NOTTINGHAMSHIRE" & STPARIDGB=="NOTTINGHAM STANDARD HILL" & STRGCNTYGB=="NOTTINGHAMSHIRE"
replace mergeclink=1 if BPSTPAGB=="ABTHORPE" & STBPCCTYGB=="NOTTINGHAMSHIRE" & STPARIDGB=="THORPE" & STRGCNTYGB=="NOTTINGHAMSHIRE"
replace mergeclink=1 if BPSTPAGB=="PARK LANE" & STBPCCTYGB=="BUCKINGHAMSHIRE" & STPARIDGB=="PARK LEYS" & STRGCNTYGB=="NOTTINGHAMSHIRE"
replace mergeclink=1 if BPSTPAGB=="BROUGHTON-SULNEY AKA UPPER BROUGHTON" & STBPCCTYGB=="NOTTINGHAMSHIRE" & STPARIDGB=="BRANT-BROUGHTON (LINCOLN)" & STRGCNTYGB=="NOTTINGHAMSHIRE"
replace mergeclink=1 if BPSTPAGB=="SUTTON-BONNINGTON" & STBPCCTYGB=="NOTTINGHAMSHIRE" & STPARIDGB=="KILVINGTON" & STRGCNTYGB=="NOTTINGHAMSHIRE"
replace mergeclink=1 if BPSTPAGB=="WILLOUGHBY ON THE WOLDS" & STBPCCTYGB=="NOTTINGHAMSHIRE" & STPARIDGB=="LODGE ON THE WOLDS" & STRGCNTYGB=="NOTTINGHAMSHIRE"
*replace mergeclink=1 if BPSTPAGB=="NORMANTON UPON SOAR" & STBPCCTYGB=="NOTTINGHAMSHIRE" & STPARIDGB=="NORMANTON ON THE WOLDS" & STRGCNTYGB=="NOTTINGHAMSHIRE"
*replace mergeclink=1 if BPSTPAGB=="RATCLIFFE UPON SOAR" & STBPCCTYGB=="NOTTINGHAMSHIRE" & STPARIDGB=="RATCLIFFE UPON TRENT" & STRGCNTYGB=="NOTTINGHAMSHIRE"
replace mergeclink=1 if BPSTPAGB=="BURFORD" & STBPCCTYGB=="GLOUCESTERSHIRE" & STPARIDGB=="BURFORD (SALOP)" & STRGCNTYGB=="WORCESTERSHIRE"
*replace mergeclink=1 if BPSTPAGB=="WORCESTER" & STBPCCTYGB=="GLOUCESTERSHIRE" & STPARIDGB=="WORCESTER ST ALBAN" & STRGCNTYGB=="WORCESTERSHIRE"
*replace mergeclink=1 if BPSTPAGB=="WORCESTER" & STBPCCTYGB=="WORCESTERSHIRE" & STPARIDGB=="WORCESTER ST ALBAN" & STRGCNTYGB=="WORCESTERSHIRE"
*replace mergeclink=1 if BPSTPAGB=="WORCESTER" & STBPCCTYGB=="GLOUCESTERSHIRE" & STPARIDGB=="WORCESTER ST HELEN" & STRGCNTYGB=="WORCESTERSHIRE"
*replace mergeclink=1 if BPSTPAGB=="WORCESTER" & STBPCCTYGB=="WORCESTERSHIRE" & STPARIDGB=="WORCESTER ST HELEN" & STRGCNTYGB=="WORCESTERSHIRE"
*replace mergeclink=1 if BPSTPAGB=="WORCESTER" & STBPCCTYGB=="WORCESTERSHIRE" & STPARIDGB=="WORCESTER ST PETER" & STRGCNTYGB=="WORCESTERSHIRE"
*replace mergeclink=1 if BPSTPAGB=="WORCESTER" & STBPCCTYGB=="GLOUCESTERSHIRE" & STPARIDGB=="WORCESTER ST PETER" & STRGCNTYGB=="WORCESTERSHIRE"
replace mergeclink=1 if BPSTPAGB=="BREDON" & STBPCCTYGB=="WORCESTERSHIRE" & STPARIDGB=="BREDICOT" & STRGCNTYGB=="WORCESTERSHIRE"
replace mergeclink=1 if BPSTPAGB=="ACTON BEAUCHAMP" & STBPCCTYGB=="WORCESTERSHIRE" & STPARIDGB=="NAUNTON BEAUCHAMP" & STRGCNTYGB=="WORCESTERSHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANDULAS IN TYR-ABBOT" & STBPCCTYGB=="BRECKNOCKSHIRE" & STPARIDGB=="LLANDDEWI-ABERGWESSIN" & STRGCNTYGB=="BRECKNOCKSHIRE"
replace mergeclink=1 if BPSTPAGB=="ABERGAVENNY" & STBPCCTYGB=="BRECKNOCKSHIRE" & STPARIDGB=="ABERLLUNVEY" & STRGCNTYGB=="BRECKNOCKSHIRE"
replace mergeclink=1 if BPSTPAGB=="WITHINGTON" & STBPCCTYGB=="CHESHIRE" & STPARIDGB=="LOWER WITHINGTON" & STRGCNTYGB=="CHESHIRE"
replace mergeclink=1 if BPSTPAGB=="BRADLEY" & STBPCCTYGB=="CHESHIRE" & STPARIDGB=="BRINDLEY" & STRGCNTYGB=="CHESHIRE"
replace mergeclink=1 if BPSTPAGB=="OVERTON" & STBPCCTYGB=="CHESHIRE" & STPARIDGB=="TIVERTON" & STRGCNTYGB=="CHESHIRE"
replace mergeclink=1 if BPSTPAGB=="CHESTER CITY ST JOHNS PARISH" & STBPCCTYGB=="CHESHIRE" & STPARIDGB=="CHESTER ST PETER" & STRGCNTYGB=="CHESHIRE"
